﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FortuneHeavenCommon.DataMap;
using FortuneHeavenBAL;
using System.Configuration;

namespace FortuneHeaven.Admin.Common
{
    public class OpLog
    {
        public static void WriteLog(string op)
        {
            if (ConfigurationManager.AppSettings["OperationLog"].Trim().ToLower() == "true")
            {
                OperationLogBO log = new OperationLogBO();
                OperationLog opLog = new OperationLog();
                opLog.Time = System.DateTime.Now;
                opLog.UserID = 3;
                opLog.Operations = op;
                log.Save(opLog, true);
            }
        }
    }
}